<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LOL Start</title>
</head>
<body>

<%!
String sGold;
int gold;

public void jspInit() {
	ServletConfig myConfig = getServletConfig();
	sGold = myConfig.getInitParameter("시작골드");
	gold = Integer.parseInt(sGold);
}

public void jspDestory() {
	gold = Integer.parseInt(sGold);
}

%>

현재 골드: <%= gold %> 골드입니다.
<%
gold += 10;
%>

</body>
</html>